package com.volcreate.inn.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.volcreate.inn.po.Blog;
import com.volcreate.inn.vo.BlogQuery;
import com.volcreate.inn.vo.BlogVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zxc
 * @since 2020-08-23
 */
public interface IBlogService extends IService<Blog> {


    Map<String, List<BlogVO>> archiveBlog();

    PageInfo<BlogVO> listBlogVO(int page, int size);

    PageInfo<BlogVO> listByBlogQuery(int page, int size, BlogQuery blogQuery);

    BlogVO getOne(Long id);


    boolean save(BlogVO blogVO);

    boolean updateLike(Long id);

    boolean updateById(Long id, BlogVO blogVO);

    boolean deleteById(Long id);

    BlogVO getAndConvert(Long id);
}
